package org.jeecg.entity.basedata;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description: 楼宇
 * @Date:   2019-07-02
 * @Version: V1.0
 */
@Data
@TableName("base_floor")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="base_floor对象", description="楼宇")
public class BaseFloor {
    
	/**楼宇ID*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "楼宇ID")
	private String id;
	/**所属项目ID*/
	@Excel(name = "所属项目ID", width = 15)
    @ApiModelProperty(value = "所属项目ID")
	private String projectId;
	/**楼宇编号*/
	@Excel(name = "楼宇编号", width = 15)
    @ApiModelProperty(value = "楼宇编号")
	private String code;
	/**楼宇名称*/
	@Excel(name = "楼宇名称", width = 15)
    @ApiModelProperty(value = "楼宇名称")
	private String name;
	/**楼宇类型*/
	@Excel(name = "楼宇类型", width = 15)
    @ApiModelProperty(value = "楼宇类型")
	@Dict(dicCode = "floor_type")
	private String floorType;
	private BigDecimal floorSum;
	/**不可用标识*/
	@Excel(name = "不可用标识", width = 15)
    @ApiModelProperty(value = "不可用标识")
	@Dict(dicCode = "disable_flag")
	private String disableFlag;
	/**删除标识*/
	@TableLogic
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
	@Dict(dicCode = "del_flag")
	private String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	@TableField(exist = false)
	private  BaseProject baseProject;

	@TableField(exist = false)
	private  List<String> ids;

	@TableField(exist = false)
	private List<BaseRoom> roomList =new ArrayList<>();
}
